package com.stox.ui.javafx.launcher;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class CachingClassPathXmlApplicationContext extends ClassPathXmlApplicationContext {

	public CachingClassPathXmlApplicationContext(String configLocation)
			throws BeansException {
		super(configLocation);
	}

	@Override
    protected DefaultListableBeanFactory createBeanFactory() {
        return new CachingByTypeBeanFactory();
    }
}